/**
 * Yi-Jing (I Ching) is one of the most ancient literature in Chinese history.  A more detailed
 * description of the system can be found at <a href="{@link}http://en.wikipedia.org/wiki/I_Ching>
 * Wikipedia: I Ching</a>.
 */
package divination.yijing;

import java.util.Random;

/**
 * @author Ting-Shuo Yo
 * Basic Yi-Jing divination.  Size Yaos and one indicator the significant Yao.
 */
public class DivinationBasic {
	public Hexagram gua;
	public int indexYao = 0;
	public DivinationBasic(Random rd){
    	// 
    	Boolean[] gua1 = new Boolean[6];
    	// Divination for 6 Yao-s with change-flag
    	for (int i=0;i<6;i++){
    		gua1[i] = rd.nextBoolean();
    	}
    	gua = new Hexagram(gua1);
    	indexYao = rd.nextInt(5);
	}
}
